//
//  ActionSearchDetailTableViewCell.m
//  EggSteward
//
//  Created by 王道林 on 16/9/10.
//  Copyright © 2016年 王道林. All rights reserved.
//

#import "ActionSearchDetailTableViewCell.h"
#import "BaseLabel.h"
#import "Masonry.h"
@implementation ActionSearchDetailTableViewCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubView];
    }
    return self;
}


- (void)createSubView
{
    _lable = [[BaseLabel alloc] init];
    [self.contentView addSubview:_lable];
    
    _imgaeview = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"xuanze"]];
    [self.contentView addSubview:_imgaeview];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    [_lable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.contentView.mas_left).mas_offset(40);
        make.top.mas_equalTo(self.contentView.mas_top);
        make.bottom.mas_equalTo(self.contentView.mas_bottom);
        make.width.mas_equalTo(100);
    }];
    
    [_imgaeview mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(self.contentView.mas_right).mas_offset(-80);
        make.top.mas_equalTo(self.contentView.mas_top).mas_offset(15);
        make.bottom.mas_equalTo(self.contentView.mas_bottom).mas_offset(-15);
        make.width.mas_equalTo(20);
    }];
}



@end
